package JavaSE_core.IO;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo6 {

	public static void main(String[] args) throws Exception {
		String s="hello,你好！";
		FileOutputStream fos=new FileOutputStream("c:/a.txt",true);
		byte[] bytes = s.getBytes();
		fos.write(bytes);
		fos.flush();
		fos.close();

	}

}
